package com.designpatterns.factory.factory1;

import com.designpatterns.factory.factory1.pizza.Pizza;
import com.designpatterns.factory.factory1.pizzaFactoy.SimplePizzaFactory;
import com.designpatterns.factory.factory1.pizzaStroe.PizzaStore;

public class   Test {
    public static void main(String[] args) {
        SimplePizzaFactory factory = new SimplePizzaFactory();
        PizzaStore pizzaStore = new PizzaStore(factory);
        Pizza pizza = pizzaStore.orderPizza("cheese");
        System.out.println(pizza);
    }


}
